﻿<pages:BaseSpeakerCreateEntityView 
    x:Class="Conference.UX.WinPhone.Pages.SpeakerCreateEntityView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:Mvx="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:pages="clr-namespace:Conference.UX.WinPhone.Pages"
    xmlns:tcl="clr-namespace:TeaLightV5.Foundation.UX.WinPhone.Controls;assembly=TeaLightV5.Foundation.Ux.WinPhone"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    Mvx:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <phone:Pivot Title="Speaker">
            <phone:PivotItem Header="Speaker">

                <Grid x:Name="ContentPanel">
                    <ScrollViewer >
                        <StackPanel Width="444" DataContext="{Binding Data}">
                            <TextBlock   Text="{Binding Id}" Visibility="Collapsed"/>

                            <TextBlock Text="Name" Style="{StaticResource LabelStyle}"/>
                            <TextBox   Text="{Binding Name, Mode=TwoWay}"/>

                            <TextBlock Text="Title" Style="{StaticResource LabelStyle}"/>
                            <TextBox   Text="{Binding Title, Mode=TwoWay}"/>

                            <TextBlock Text="Company" Style="{StaticResource LabelStyle}"/>
                            <TextBox   Text="{Binding Company, Mode=TwoWay}" />

                            <TextBlock Text="Biography" Style="{StaticResource LabelStyle}"/>
                            <TextBox   Text="{Binding Biography, Mode=TwoWay}"/>
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </phone:PivotItem>

        </phone:Pivot>

        <tcl:BindableApplicationBar>
            <tcl:BindableApplicationBarIconButton IconUri="/images/appbar.save.rest.png" Text="Save" 
                                                      tcl:AppBarItemClick.Command="{Binding SaveCommand}" />
        </tcl:BindableApplicationBar>

    </Grid>

</pages:BaseSpeakerCreateEntityView>
